(function(angular) {
	'use strict';
	angular.module("fs.waf").factory("smtpService", smtpService);
	smtpService.$inject = [ '$q', 'loggerFactory', 'ajaxServiceFactory'];
	function smtpService($q, loggerFactory, ajaxServiceFactory) {
	var log = loggerFactory.getLogger("smtpService");

	var ajaxService = ajaxServiceFactory.buildAjaxService({
		getDataStatus : {
			url : 'do/cda/dataList/dataStatus',
			method : 'post'
		}
	});

	function initOptionForSearch(){
		var defer = $q.defer();
		ajaxService.getDataStatus().then(function(response) {
			defer.resolve(response ? response.data : {});
		}, angular.noop);
		return defer.promise;
	};
	
	return {
		initOptionForSearch : initOptionForSearch
	};
  }
})(angular);